import {
	createSSRApp
} from 'vue'
import App from './App'

// ui
import uviewPlus from 'uview-plus'

// 初始化store
import store from '@/store';

// 插件
import plugins from '@u/plugins';

// 路由拦截器
import router from './router';

export function createApp() {
	const app = createSSRApp(App)
	app.use(uviewPlus).use(router).use(store).use(plugins)
	return {
		app
	}
}